// 派工接收
import request from '@/utils/request'
// 待接收派工
export function query(data) {
  return request({
    url: `pp/p/scheduleReceive/receiveList`,
    method: 'post',
    data
  })
}
/**
 * 查询派工接收的完成数据和历史数据
 * @param data.isComplete false 历史数据 true 完成数据
 */
export function queryHistory(data) {
  return request({
    url: `pp/p/scheduleReceive/list`,
    method: 'post',
    data
  })
}
// 接收派工
export function receive(data) {
  return request({
    url: `pp/p/scheduleReceive/dispatch`,
    method: 'put',
    data
  })
}
